
let baseUrl = '';
let uploadImage = "";
let imagePath = "";
let socketURL = "";
let codeUrl = `${baseUrl}/code`
const env = import.meta.env

if (env.VITE_APP_ENV == 'development') { // 开发环境地址
                                     // baseUrl = "http://192.168.30.254:9900";
                                     // uploadImage = "http://192.168.30.254:8080/upload/";
                                     // imagePath = "https://hagavp.jacars.com/huaian";
  baseUrl = "http://127.0.0.1:9900";
  // baseUrl = "https://cloud.trtc.live";
  uploadImage = "http://121.4.66.24:26844/upload/";
  imagePath = "https://hagavp.jacars.com/huaian";
  socketURL = "ws://localhost:9900/api-ws/websocket?id=";
} else if (env.VITE_APP_ENV == 'production') { //生产环境地址
                                           // baseUrl = "https://haga.trtc.live";
                                           // uploadImage = "https://haga.trtc.live/";
                                           // imagePath = "https://haga.trtc.live/huaian";
                                           // socketURL = "wss://haga.trtc.live/api-ws/websocket?id=";
  baseUrl = "https://cloud.trtc.live";
  uploadImage = "http://222.187.193.202:50022/";
  imagePath = "http://222.187.193.202:50022/";
} else if (env.VITE_APP_ENV == 'neiwang') {
  baseUrl = "http://32.176.13.12:9900";
  uploadImage = "http://32.176.13.12:9900/";
  imagePath = "http://32.176.13.12:9900/";
} else if (env.VITE_APP_ENV == 'test') { //测试环境地址
  baseUrl = "http://192.168.98.123:9900";
  // baseUrl = "https://cloud.trtc.live";
  // baseUrl = "http://192.168.30.254:8088";
  // uploadImage = "http://192.168.30.254:8088/upload/";
  uploadImage = "https://cloud.trtc.live/upload/";
  imagePath = "https://cloud.trtc.live/huaian";
  socketURL = "wss://cloud.trtc.live/api-ws/websocket?id=";
}
export {
  baseUrl,
  uploadImage,
  imagePath,
  socketURL,
  codeUrl,
  env
}
